<?php
	require_once("../inc/models/user_model.php");
	if(isset($_POST['submit']))
	{
		$row = $_POST;
		NewUser($row);
		header("Location: index.php");
	}
?>
<!DOCTYPE html>
<html lang="en">
	<head>
    <meta charset="utf-8">
    <title>Final Project</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="This is a e-commerce website for a final project in Web Server Programming 2012">
    <meta name="author" content="Elliot Wasser">
    <!-- Le styles -->
    <link href="../inc/bootstrap/css/bootstrap.css" rel="stylesheet">
    <style type="text/css">
    	body{
    		padding-top: 60px;
    		padding-bottom: 40px;
    	}
    </style>
    <link href="../inc/bootstrap/css/bootstrap-responsive.css" rel="stylesheet">
    <!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
    <!--[if lt IE 9]>
      <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->
  </head>
  <body>
   <div class="navbar navbar-inverse navbar-fixed-top">
      <div class="navbar-inner">
        <div class="container">
          <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </a>
          <a class="brand" href="">Web Server Final 2012</a>
          <div class="nav-collapse">
            <ul class="nav">
              <li><a href="#">Home</a></li>
              <li><a href="shop.php">Shop</a></li>
              <li><a href="contact.php">Information</a></li>
              <form class="navbar-form pull-right" action="checklogin.php" method="post">   			  	  
   			      <input type="text" name="name" class="span2" placeholder="E-mail">   				  
   			      <input type="password" name="pass" class="span2" placeholder="password">   				  
   				  <button type="submit" class="btn">Log in</button>
  			  </form>
			  <li><a href="#">Sign Up</a></li>
            </ul>
          </div><!--/.nav-collapse -->
        </div>
      </div>
    </div> 
    <center> 
        <div class="span9">
        	<div class="row-fluid">
        		<h2>Create User</h2> 
        		<form class="well" method="post" action="#">
					<div class="control-group">
						<label class="control-label" for="first_name">First Name:</label>
						<div class="controls">
							<input type="text" name="first_name" id="first_name"/>
						</div>
					</div>
					<div class="control-group">
						<label class="control-label" for="last_name">Last Name:</label>
						<div class="controls">
							<input type="text" name="last_name" id="last_name"/>
						</div>
					</div> 
					<div class="control-group">
						<label class="control-label" for="email">Email:</label>
						<div class="controls">
							<input type="text" name="email" id="email"/>
						</div>
					</div> 
					<div class="control-group">
						<label class="control-label" for="password">password:</label>
						<div class="controls">
							<input type="password" name="password" id="password"/>
						</div>
					</div> 
					<input type="submit" name="submit" value="Submit" />
				</form>
        	</div>
        </div>
      </center>
        <!-- All Bootstrap JavaScript Files -->
        <script src="../inc/bootstrap/js/jquery.js"></script>
    	<script src="../inc/bootstrap/js/bootstrap.js"></script>
   </body>
</html>